package com.ruoyi.common.enums;

/**
 * 用户状态
 * 
 * @author ruoyi
 */
public enum ERecordType
{
    DA_KA(0, "打卡"),
    SHOU_DONG_ADD(1, "手动增加"),
    SHOU_DONG_UPDATE(2, "手动修改");

    private final Integer code;
    private final String info;

    ERecordType(Integer code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public Integer getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }

    public static String getInfoByCode(Integer code){
        ERecordType[] eRecordTypes = values();
        for (ERecordType recordType : eRecordTypes) {
            if ((recordType.code).equals(code)) {
                return recordType.getInfo();
            }
        }
        return "";
    }
}
